/* exported IntrospectService */
const { Gio, GLib, Meta, Shell, St } = imports.gi;
-const INTROSPECT_SCHEMA = 'org.gnome.shell';
-const INTROSPECT_KEY = 'introspect';
const APP_ALLOWLIST = [
'org.freedesktop.impl.portal.desktop.gtk',
'org.freedesktop.impl.portal.desktop.gnome',
this._syncRunningApplications();
});
- this._introspectSettings = new Gio.Settings({
- schema_id: INTROSPECT_SCHEMA,
- });
-
let tracker = Shell.WindowTracker.get_default();
tracker.connect('notify::focus-app',
() => {
return app.get_windows().some(w => w.transient_for == null);
}
- _isIntrospectEnabled() {
- return this._introspectSettings.get_boolean(INTROSPECT_KEY);
- }
-
_isSenderAllowed(sender) {
return [...this._allowlistMap.values()].includes(sender);
}
}
_checkInvocation(invocation) {
- if (this._isIntrospectEnabled())
+ if (global.context.unsafe_mode)
return;
if (this._isSenderAllowed(invocation.get_sender()))